package com.hanxiaozhang.system.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;
import java.util.Map;

import com.hanxiaozhang.system.dao.RoleMenuDao;
import com.hanxiaozhang.system.entity.RoleMenuEntity;
import com.hanxiaozhang.system.service.RoleMenuService;


/**
 * 角色菜单关联表
 *
 * @author hanxiaozhang
 * @email hanxiaozhang2018@sina.com
 * @date 2021-03-31
 */
@Service
public class RoleMenuServiceImpl implements RoleMenuService {

	@Resource
	private RoleMenuDao roleMenuDao;
	
	@Override
	public RoleMenuEntity get(Long roleMenuId){
		return roleMenuDao.get(roleMenuId);
	}
	
	@Override
	public List<RoleMenuEntity> list(Map<String, Object> map){
		return roleMenuDao.list(map);
	}
	
	@Override
	public int save(RoleMenuEntity roleMenu){
		return roleMenuDao.save(roleMenu);
	}
	
	@Override
	public int update(RoleMenuEntity roleMenu){
		return roleMenuDao.update(roleMenu);
	}

}
